package org.tong.serviceImpl;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.tong.conf.MyConf;
import org.tong.service.ServiceOne;

import java.util.Date;

@DubboService(version = "1.0.0")
public class ServiceOneImpl implements ServiceOne {

    @Autowired
    MyConf myConf;

    @Override
    public String sayHello(String name) {
        return String.format("hello %s flag:%s -> %s", name, myConf.getFlag(), new Date().toString());
    }
}
